package com.ruoyi.project.wenyanwen.export.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 数据表配置对象 sqlite_export
 *
 * @author shixiangwen
 * @date 2020-09-27
 */
public class SqliteExport extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 数据库
     */
    @Excel(name = "数据库")
    private String dbName;

    /**
     * MYSQL表
     */
    @Excel(name = "MYSQL表")
    private String inputTable;

    /**
     * MYSQL查询
     */
    @Excel(name = "MYSQL查询")
    private String inputSql;

    /**
     * SQLITE表
     */
    @Excel(name = "SQLITE表")
    private String outputTable;

    /**
     * MYSQL映射类
     */
    @Excel(name = "MYSQL映射类")
    private String inputClass;

    /**
     * SQLITE映射类
     */
    @Excel(name = "SQLITE映射类")
    private String outputClass;

    /**
     * 转换类
     */
    @Excel(name = "转换类")
    private String convertClass;

    /**
     * 建表语句
     */
    @Excel(name = "建表语句")
    private String createSql;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /**
     * 数据源
     */
    @Excel(name = "数据源")
    private String datasource;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getDbName() {
        return dbName;
    }

    public void setInputTable(String inputTable) {
        this.inputTable = inputTable;
    }

    public String getInputTable() {
        return inputTable;
    }

    public void setOutputTable(String outputTable) {
        this.outputTable = outputTable;
    }

    public String getOutputTable() {
        return outputTable;
    }

    public void setInputClass(String inputClass) {
        this.inputClass = inputClass;
    }

    public String getInputClass() {
        return inputClass;
    }

    public void setOutputClass(String outputClass) {
        this.outputClass = outputClass;
    }

    public String getOutputClass() {
        return outputClass;
    }

    public void setConvertClass(String convertClass) {
        this.convertClass = convertClass;
    }

    public String getConvertClass() {
        return convertClass;
    }

    public void setCreateSql(String createSql) {
        this.createSql = createSql;
    }

    public String getCreateSql() {
        return createSql;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setDatasource(String datasource) {
        this.datasource = datasource;
    }

    public String getDatasource() {
        return datasource;
    }

    public String getInputSql() {
        return inputSql;
    }

    public void setInputSql(String inputSql) {
        this.inputSql = inputSql;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("dbName", getDbName())
                .append("inputTable", getInputTable())
                .append("outputTable", getOutputTable())
                .append("inputClass", getInputClass())
                .append("outputClass", getOutputClass())
                .append("convertClass", getConvertClass())
                .append("createSql", getCreateSql())
                .append("createdTime", getCreatedTime())
                .append("datasource", getDatasource())
                .toString();
    }
}
